<include file="__THEME__/user_header" />
<script type="text/javascript" src="../Public/js/register.js" ></script>
	<article class="app_widgets">
		<form id="form1"  action="{:U('home/Account/update')}"  method="POST" >
		    <input type="hidden" name="dotype" value="upbase" />
			<!-- widget begin-->
			<div class="widget_group">
				<h2 class=""><a href="">基本资料</a></h2>
				<div class="widget form_content basic_file hidden">
						<div class="body">
						 <!-- begin form items-->
						 <div class="control-group">
				            <label class="control-label" for="input01">* 昵称</label>
				            <div class="controls">
				              <input name="nickname" maxLength="110" type="text" class="text" value="{$userInfo.detail.uname}" />
				            </div>
				          </div>

				          <div class="control-group">
				            <label class="control-label" for="input01">居住地</label>
				            <div class="controls">
				            {:W('Area', array('location' => $userInfo['detail']['location']))}
				            </div>
				          </div>
				          <div class="control-group">
				            <label class="control-label" for="input01">小区/村镇地址</label>
				            <div class="controls">
				               <input type="text" class="input-xlarge district" require="true" datatype="limit" min="2" name="address" value="{:getUserAddress($userInfo['detail']['address'])}" msg="输入你所在的社区或村镇信息" />
			             	   <div id="help_address" class="help"> <p>提供小区信息以找到你身边的伙伴</p></div>
			              	   <div id="error_address" class="error_tips" style="display:none;"></div>
				            </div>
				          </div>

				          <div class="control-group">
				            <label class="control-label" for="input01">幼儿园</label>
				            <div class="controls">
				              {:W('Garden', array('garden' => $userInfo['detail']['garden']))}
				            </div>
				          </div>

				          <div class="control-group">
				            <label class="control-label" for="input01">宝宝性别</label>
				            <div class="controls">
				               <label class="multiple_input sex"><input type="radio" name="sex"  value="0" <eq name="userInfo.detail.sex" value="0">checked='true'</eq>/>男</label>
			              	   <label class="multiple_input sex"><input type="radio" name="sex"  value="1" <eq name="userInfo.detail.sex" value="1">checked='true'</eq>/>女</label>
				            </div>
				          </div>
				          <!-- end items-->
			  	          <div class="form-actions">
				            <button type="submit" class="btn btn-primary">保存</button>
				          </div>
						</div>
				</div>
			</div>
			</form>
			<!-- widget end -->

			<!-- widget begin-->
			<form id="form2" action="{:U('home/Account/update')}"  method="POST" >
			<input type="hidden" name="dotype" value="upintro" />
			<div class="widget_group">
				<h2><a href=""  class="on">健康档案</a></h2>
				<div class="widget form_content health_file">
						<!-- begin form items -->
						<div class="body">
							  <div class="control-group">
					            <label class="control-label" for="input01">生日</label>
					            <div class="controls">
					              <input type="text" class="input-xlarge date_selector"  require="false" name="birthday"  datatype="date"  msg="请输入正确的生日" value="{$userProfile['intro']['birthday']}" readonly/>
					              <div class="help"> <p>找你同龄的小伙伴</p></div>
					            </div>
					          </div>

					          <div class="control-group">
					            <label class="control-label" for="input01">血型</label>
					            <div class="controls">
					               <select name="blood_type" >
					               	<option value="AB" <eq name="userProfile['intro']['blood_type']" value="AB">selected</eq> >AB</option>
					               	<option value="A" <eq name="userProfile['intro']['blood_type']" value="A">selected</eq>>A</option>
					               	<option value="B" <eq name="userProfile['intro']['blood_type']" value="B">selected</eq>>B</option>
					               	<option value="o" <eq name="userProfile['intro']['blood_type']" value="o">selected</eq>>o</option>
					               </select>
					               <div class="help"> <p>找你性格差不多的小伙伴</p></div>
					            </div>
					          </div>

					          <div class="control-group">
					            <label class="control-label" for="input01">体重(kg)</label>
					            <div class="controls">
					              <input type="text" class="input-xlarge" name="weight" value="{$userProfile['intro']['weight']}" require="false" datatype="range"  min="2" msg="体重不能低于2KG" />
					              <div id="help_weight" class="help"> <p>根据体重来选择符合你的营养信息</p></div>
					              <div id="error_weight" class="error_tips" style="display:none;"></div>
					            </div>
					          </div>

					          <div class="control-group">
					            <label class="control-label" for="input01">身高(cm)</label>
					            <div class="controls">
					              <input type="text" class="input-xlarge" name="height" value="{$userProfile['intro']['height']}" require="false" datatype="range"  min="30" msg="身高不能低于30CM" />
					              <div id="help_height" class="help"> <p>根据身高给你各阶段的营养建议</p></div>
		                          <div id="error_height" class="error_tips" style="display:none;"></div>
					            </div>
					          </div>

					          <div class="control-group">
					            <label class="control-label" for="input01">性格</label>
					            <div class="controls">
					               <select name="character" >

					               	<option value="内向" <if condition=" $userProfile['intro']['character'] eq '内向'">selected</if> >内向</option>
					               	<option value="外向" <if condition=" $userProfile['intro']['character'] eq '外向'">selected</if> >外向</option>
					               	<option value="中性" <if condition=" $userProfile['intro']['character'] eq '中性'">selected</if> >中性</option>
					               </select>
					               <div class="help"> <p>用于推荐改良性格的资料</p></div>
					            </div>
					          </div>

					          <div class="control-group">
					            <label class="control-label" for="input01">家庭情况</label>
					            <div class="controls">
					              <label class="multiple_input parent"><input type="radio" name="parents" <if condition=" $userProfile['intro']['parents'] eq 2 ">checked</if> value="2" />双亲</label>
					              <label class="multiple_input parent"><input type="radio" name="parents" <if condition=" $userProfile['intro']['parents'] eq 1 ">checked</if>  value="1"/>单亲</label>
					            </div>
					          </div>

					          <div class="control-group">
					            <label class="control-label" for="input01">我是孩子的</label>
					            <div class="controls">
					               <select name="parent_type" >
					               {:getRelationOption($userProfile['intro']['parent_type'])}
					               </select>
					               <div class="help"> <p>选择合适的身份以获得你需要的资料</p></div>
					            </div>
					          </div>

				  	          <div class="form-actions">
					            <button type="submit" class="btn btn-primary">保存</button>
					          </div>
						</div>
						<!-- end form items-->
				</div>
			</div>
			</form>
			<!-- widget end -->


			<!-- widget begin-->
			<form id="form3"  action="{:U('home/Account/update')}"  method="POST" >
			<input type="hidden" name="dotype" value="upcontact" />
			<div class="widget_group">
				<h2><a href=""  class="on">联系方式</a></h2>
				<div class="widget form_content contacts">
						<!-- begin form items -->
						<div class="body">
					          <div class="control-group">
					            <label class="control-label">联系电话</label>
					            <div class="controls">
					              <input type="text" class="input-xlarge" name="contact[telphone]" value="{$userProfile['contact']['telphone']}"/>
					              <div class="help"> 行动电话,给家人保持随时联系</div>
					            </div>
					          </div>

					          <div class="control-group">
					            <label class="control-label">QQ</label>
					            <div class="controls">
					              <input type="text" class="input-xlarge" name="contact[qq]" value="{$userProfile['contact']['qq']}" size="20" />
					              <div class="help"> </div>
					            </div>
					          </div>

					          <div class="control-group">
					            <label class="control-label">邮箱</label>
					            <div class="controls">
					              <input type="text" class="input-xlarge" value="{$userProfile['contact']['email']}" name="email" require="false" datatype="email" msg="请输入正确的邮箱" />
					              <div id="help_email" class="help"> <p></p></div>
		                          <div id="error_email" class="error_tips" style="display:none;"></div>
					            </div>
					          </div>

				  	          <div class="form-actions">
					            <button type="submit" class="btn btn-primary">保存</button>
					          </div>

						</div>
						<!-- end form items-->

				</div>
			</div>
			</form>
			<!-- widget end -->

			<!-- widget begin-->
			<form id="form4"  action="{:U('home/Account/update')}"  method="POST" >
			<input type="hidden" name="dotype" value="upspecial" />
			<div class="widget_group">
				<h2><a href=""  class="on">个性资料</a></h2>
				<div class="widget form_content contacts">
						<!-- begin form items -->
						<div class="body">
						      <!--
					          <div class="control-group">
					            <label class="control-label">星座</label>
					            <div class="controls">
					              <input type="text" class="input-xlarge" name="constellation" value="{$userProfile['intro']['constellation']}"/>
					              <div class="help"></div>
					            </div>
					          </div>
					          -->

					          <div class="control-group">
					            <label class="control-label">特长</label>
					            <div class="controls">
					              <input type="text" class="input-xlarge" name="speciality" value="{$userProfile['intro']['speciality']}" />
					              <div class="help"> </div>
					            </div>
					          </div>

					          <div class="control-group">
					            <label class="control-label">口头禅</label>
					            <div class="controls">
					              <input type="text" class="input-xlarge" name="motto" value="{$userProfile['intro']['motto']}" />
					              <div class="help"> </div>
					            </div>
					          </div>

					          <div class="control-group">
					            <label class="control-label">爱好</label>
					            <div class="controls">
					              <input type="text" class="input-xlarge" value="{$userProfile['intro']['interest']}" name="interest" require="false" datatype="" msg="" />
					              <div class="help"></div>
					            </div>
					          </div>

				  	          <div class="form-actions">
					            <button type="submit" class="btn btn-primary">保存</button>
					          </div>

						</div>
						<!-- end form items-->

				</div>
			</div>
			</form>
			<!-- widget end -->

			<!-- widget begin-->
			<div class="widget_group">
				<h2><a href=""  class="on">亲人</a></h2>
				{:W('FamilyMember', $ts['user'])}
			</div>
			<!-- widget end -->
	</article>

<include file="__THEME__/user_footer" />
